QT += quick multimedia

CONFIG += c++11

# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
        Tool/tool_camera.cpp \
        Tool/tool_captrue.cpp \
        Tool/tool_qrdecoder.cpp \
        main.cpp

RESOURCES += qml.qrc

# Additional import path used to resolve QML modules in Qt Creator's code model
QML_IMPORT_PATH =

# Additional import path used to resolve QML modules just for Qt Quick Designer
QML_DESIGNER_IMPORT_PATH =

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

HEADERS += \
    Tool/tool_camera.h \
    Tool/tool_captrue.h \
    Tool/tool_qrdecoder.h

win32{
CONFIG(release, debug|release): LIBS += -LD:/opencv/build/x64/vc15/lib/ -lopencv_world453
else:win32:CONFIG(debug, debug|release): LIBS += -LD:/opencv/build/x64/vc15/lib/ -lopencv_world453d

INCLUDEPATH += D:/opencv/build/include
DEPENDPATH += D:/opencv/build/include
}


unix {
    message("arm64-v8a")
QT += androidextras
#QT += core-private
#ANDROID_OPENCV = D:/software/android/OpenCV-android-sdk/sdk/native
ANDROID_OPENCV =D:/opencv/OpenCV-android-sdk/sdk/native

    INCLUDEPATH += $$ANDROID_OPENCV/jni/include/opencv2 \
                   $$ANDROID_OPENCV/jni/include

    LIBS += $$ANDROID_OPENCV/staticlibs/arm64-v8a/libopencv_calib3d.a \
            $$ANDROID_OPENCV/staticlibs/arm64-v8a/libopencv_core.a \
            $$ANDROID_OPENCV/staticlibs/arm64-v8a/libopencv_dnn.a \
            $$ANDROID_OPENCV/staticlibs/arm64-v8a/libopencv_features2d.a \
            $$ANDROID_OPENCV/staticlibs/arm64-v8a/libopencv_flann.a \
            $$ANDROID_OPENCV/staticlibs/arm64-v8a/libopencv_highgui.a \
            $$ANDROID_OPENCV/staticlibs/arm64-v8a/libopencv_imgcodecs.a \
            $$ANDROID_OPENCV/staticlibs/arm64-v8a/libopencv_imgproc.a \
            $$ANDROID_OPENCV/staticlibs/arm64-v8a/libopencv_ml.a \
            $$ANDROID_OPENCV/staticlibs/arm64-v8a/libopencv_objdetect.a \
            $$ANDROID_OPENCV/staticlibs/arm64-v8a/libopencv_photo.a \
            $$ANDROID_OPENCV/staticlibs/arm64-v8a/libopencv_stitching.a \
            $$ANDROID_OPENCV/staticlibs/arm64-v8a/libopencv_video.a \
            $$ANDROID_OPENCV/staticlibs/arm64-v8a/libopencv_videoio.a \
            $$ANDROID_OPENCV/3rdparty/libs/arm64-v8a/libcpufeatures.a \
            $$ANDROID_OPENCV/3rdparty/libs/arm64-v8a/libIlmImf.a \
            $$ANDROID_OPENCV/3rdparty/libs/arm64-v8a/libittnotify.a \
#            $$ANDROID_OPENCV/3rdparty/libs/arm64-v8a/liblibjasper.a \
            $$ANDROID_OPENCV/3rdparty/libs/arm64-v8a/liblibjpeg-turbo.a \
            $$ANDROID_OPENCV/3rdparty/libs/arm64-v8a/liblibpng.a \
            $$ANDROID_OPENCV/3rdparty/libs/arm64-v8a/liblibprotobuf.a \
            $$ANDROID_OPENCV/3rdparty/libs/arm64-v8a/liblibtiff.a \
            $$ANDROID_OPENCV/3rdparty/libs/arm64-v8a/liblibwebp.a \
            $$ANDROID_OPENCV/3rdparty/libs/arm64-v8a/libquirc.a \
            $$ANDROID_OPENCV/3rdparty/libs/arm64-v8a/libtbb.a \
            $$ANDROID_OPENCV/3rdparty/libs/arm64-v8a/libtegra_hal.a \
            $$ANDROID_OPENCV/libs/arm64-v8a/libopencv_java4.so
#    ANDROID_EXTRA_LIBS = \
#        $$PWD/../../../software/android/OpenCV-android-sdk/sdk/native/libs/arm64-v8a/libopencv_java4.so

}
ANDROID_EXTRA_LIBS = D:/opencv/OpenCV-android-sdk/sdk/native/libs/arm64-v8a/libopencv_java4.so

